cmake_minimum_required(VERSION 3.10)
project(parallel_test)

set(CMAKE_CXX_STANDARD 14)

#dubug 模式
set (CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -g")

find_package(PCL 1.7 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

find_package(Eigen3)
INCLUDE_DIRECTORIES(${EIGEN3_INCLUDE_DIR})

set(OpenCV_DIR "/home/w/huangsx/dep/opencv-3.2.0/install/share/OpenCV/")
# find required opencv
find_package(OpenCV 3.2.0 REQUIRED)
message([STATUS] "Opencv version " ${CMAKE_MODULE_PATH} " " ${CMAKE_ROOT} " " ${OpenCV_VERSION} "  " ${OpenCV_INCLUDE_DIRS} "  "${OpenCV_LIBS})
# directory of opencv headers
include_directories(${OpenCV_INCLUDE_DIRS})




add_executable(opencv_test opencv_test.cpp)
 target_link_libraries(opencv_test
         ${OpenCV_LIBS}
         ) 

add_executable(opencv_rls opencv_rls.cpp)
target_link_libraries(opencv_rls
        ${OpenCV_LIBS}
        ) 

add_executable(ransac ransac.cpp)
target_link_libraries(ransac
        ${OpenCV_LIBS}
        ) 

add_executable(eigen_test eigen_test.cpp)
target_link_libraries(eigen_test
        ${OpenCV_LIBS}
        ) 

# add_executable(pcl_pca3dbbox pcl_pca3dbbox.cpp)
# target_link_libraries(pcl_pca3dbbox
#         ${OpenCV_LIBS}
#         ${PCL_LIBS}
#         ) 

add_executable(feature_match feature_match.cpp)
target_link_libraries(feature_match
        ${OpenCV_LIBS}
        ${PCL_LIBS}
        ) 

add_executable(feature feature.cpp)
target_link_libraries(feature
        ${OpenCV_LIBS}
        ${PCL_LIBS}
        ) 

add_executable(mask_test mask_test.cpp)
target_link_libraries(mask_test
        ${OpenCV_LIBS}
        ${PCL_LIBS}
        ) 

add_executable(surf_feature_match surf_feature_match.cpp)
target_link_libraries(surf_feature_match
        ${OpenCV_LIBS}
        ${PCL_LIBS}
        )

add_executable(find_moment_test find_moment_test.cpp)
target_link_libraries(find_moment_test
        ${OpenCV_LIBS}
        ${PCL_LIBS}
        )

add_executable(aurco_test aurco_test.cpp)
target_link_libraries(aurco_test
        ${OpenCV_LIBS}
        ${PCL_LIBS}
        )

add_executable(clahe_test clahe_test.cpp)
target_link_libraries(clahe_test
        ${OpenCV_LIBS}
        ${PCL_LIBS}
        )

add_executable(pictures_joint pictures_joint.cpp)
target_link_libraries(pictures_joint
        ${OpenCV_LIBS}
        ${PCL_LIBS}
        )

#

#export PYTHONHOME="/home/st/ubuntu_data/software/miniconda3/envs/ciassd_tra_pre"
#cmake .. "-DCMAKE_PREFIX_PATH=/home/st/ubuntu_data/software/miniconda3/envs/ciassd_tra_pre"

#!/home/st/ubuntu_data/software/miniconda3/envs/ciassd_tra_pre/bin/python
